//
//  TopicCell.m
//  Double
//
//  Created by 袁庆秋 on 15/5/26.
//  Copyright (c) 2015年 袁庆秋. All rights reserved.
//

#import "TopicCell.h"

@implementation TopicCell

- (void)dealloc
{
    [_curNumLabel release];
    [_scoreLabel release];
    [_showImage release];
    [_nameLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.showImage = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, [UIScreen mainScreen].bounds.size.width / 3, self.frame.size.height - 10)];
        self.showImage.layer.cornerRadius = 10;
        self.showImage.clipsToBounds = YES;
        [self addSubview:self.showImage];
        [self.showImage release];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 3 + 10, 8, [UIScreen mainScreen].bounds.size.width / 3 + 30, 30)];

        self.nameLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.nameLabel];
        [self.nameLabel release];
        
        self.curNumLabel = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 3 + 10, 40, [UIScreen mainScreen].bounds.size.width / 3 * 2 , 25)];

        self.curNumLabel.font = [UIFont systemFontOfSize:12];
        [self addSubview:self.curNumLabel];
        [self.curNumLabel release];
        
        self.topicIntroLabel = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width / 3 + 10, 80, [UIScreen mainScreen].bounds.size.width / 3 * 2 - 20, 60)];
        self.topicIntroLabel.numberOfLines = 0;
        self.topicIntroLabel.font = [UIFont systemFontOfSize:10];
        [self addSubview:self.topicIntroLabel];
        [self.topicIntroLabel release];
        
        self.scoreLabel = [[UILabel alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width - 60, 5, 60, 30)];
        self.scoreLabel.textColor = [UIColor orangeColor];
        [self addSubview:self.scoreLabel];
        [self.scoreLabel release];
        
    }
    return self;
}







@end
